import request from '@/utils/request'

const api_name = '/marketing/recommendproduct'

export default {

  getDataList(params) {
    return request({
      url: `${api_name}/page`,
      method: 'get',
      params: params
    })
  },

  deleteNewProduct(ids) {
    return request({
      url: `${api_name}/delete`,
      method: "post",
      data: ids
    })
  },

  getAdvertise(id) {
    return request({
      url: `${api_name}/info/${id}`,
      method: "get",
    })
  },


  
  updateStatus(newproduct) {
    return request({
        url: `${api_name}/status`,
        method: "post",
        data: newproduct
    })
  },

  createAdvertise(advertise) {
    return request({
      url: `${api_name}/create`,
      method: "post",
      data: advertise
    })
  },

  updateAdvertise(advertise) {
    return request({
      url: `${api_name}/update`,
      method: "post",
      data: advertise
    })
  },


}